package com.duanxian.service;

import com.duanxian.core.db.DbTemplateImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by llx on 2017/8/13.
 */
@Service("baseService")
public class BaseServiceImpl implements BaseService{


    @Autowired
    private DbTemplateImpl dbTemplate;

    @Transactional
    public List<Map<String,Object>> getUser(){

        List<Object> params = new ArrayList<>(1);
        params.add("55951c7d6a124ae0b913f39fccf8966c");
        return dbTemplate.query("select * from sys_user where user_id = ?",params);
    }

}
